import request from "@/utils/request";

//获取顶部饼图的数据
export function getTopPieData() {
  return request({
    url: "/dashboard/topPie",
    method: "get",
  });
}

//获取顶部用户信息
export function getTopUserData() {
  return request({
    url: "/dashboard/userinfo",
    method: "get",
  });
}

//获取代办事项
export function getTodoData() {
  return request({
    url: "/dashboard/todoTask",
    method: "get",
  });
}

//获取老人等级分布
export function getElderLevelData() {
  return request({
    url: "/dashboard/elderLevel",
    method: "get",
  });
}

//获取老人年龄分布
export function getElderAgeData() {
  return request({
    url: "/dashboard/elderAge",
    method: "get",
  });
}

//获取养老服务能力
export function getElderServiceData() {
  return request({
    url: "/dashboard/serviceAbility",
    method: "get",
  });
}
